<?php
/**
 * 建立Mongo链接，并选择数据库
 *
 */
function mongo_connect( $db_server_url = '172.17.0.46' , $db_name = 'classmate' ){
	 
	 $mongo = new Mongo( $db_server_url );
	 return $mongo->selectDB( $db_name );
}
